<?php
//PHP的interface接口 所有方法全部抽象且必须被重写
interface phone{
	public function call();
	function video();
}
interface Mp3 {
	const MP="I am Mp3";
	function music();
}
interface Mp4{
	function readbook();
}
interface Mp5 extends Mp4{
	function sxj();
}
class a implements phone,Mp3,Mp5{
	function call(){
		echo "call方法";
	}
	function video(){}
	function music(){}
	function readbook(){}
	function sxj(){}
}
echo a::MP;
echo "<hr>";
$ob=new a;
$ob->call();
echo "<hr>PHP的interface接口 所有方法全部抽象且必须被重写";
?>
